package DataStructure.list.ArrayList;

import java.util.List;
import java.util.Vector;

public class VectorTest {
    public static void main(String[] args) {
        //实例化Vector容器
        List<String> v = new Vector<>();

        //1.向集合中添加元素
        v.add("hello");
        v.add("world");
        v.add(1,"java");
        v.add("hello");

        //2.获取元素
        String s = v.get(1);
        System.out.println(s);

    }
}
